<template>
  <view> </view>
</template>

<script>
// 该页面目的是建立页面地址的映射关系，将页面地址的长链接转为短链接，避免因页面地址过长无法转换为二维码和页面短链
import shareInfo from "@/utils/shareInfo"
import { getSysParam } from "@/utils"

export default {
  data() {
    return {
      mapList: [
        {
          desc: "新用户领30天会员页面",
          path: "/pages/imagePage/index?urlList=%5B%22https%3A%2F%2Fkou.gdzmtech.com%2Fpic%2F20240316190320.png%22%5D&btnText=领取会员&jumpPath=%2Fpages%2FimagePage%2Findex%3FurlList%3D%255B%2522https%253A%252F%252Fkou.gdzmtech.com%252Fpic%252F2f4f26734cd6ebab9383f2721f1d1ab.jpg%2522%255D&jumpType=jumpPage",
        },
      ],
    }
  },
  onLoad(query) {
    const index = Number.parseInt(query.id)
    const item = this.mapList[index]
    getSysParam("openRouterMapJump").then((boolean) => {
      if (boolean) {
        uni.navigateTo({
          url: item.path,
        })
      }
    })
  },
  async onShareAppMessage() {
    return await shareInfo.getDefaultShareInfo()
  },
}
</script>

<style lang="scss"></style>
